<?php
class Poll_Form_Admin_Global extends Engine_Form {
    public function init() {

        $this
                ->setTitle('Global Settings')
                ->setDescription('');

        $setting = Engine_Api::_()->getApi('settings', 'core');
        
        $this->addElement('Text', 'poll_items_displayed', array(
                'label' => 'Options display',
                'description' => 'How many options will be shown per question?',
                'value' => $setting->getSetting('poll.items.displayed', 3),
        )); 
        
        
        $this->addElement('Button', 'submit', array(
                'label' => 'Save Changes',
                'type' => 'submit',
                'ignore' => true
        ));
    }
}  
?>
